home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: pointer questions
- Date: 20 Mar 1996 00:33:18 GMT
- Organization: Borland International
- Message-ID: <4injoe$qcp@druid.borland.com>
- References: <4ifatf$5a8u@uvaix3e1.comp.UVic.CA>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <4ifatf$5a8u@uvaix3e1.comp.UVic.CA>, cgesy@uvaix.uvic.ca says...
- >
- >Could someone tell me if there is a difference
- >between the declaration "int *thing_ptr" and
- >"int* thing_ptr" ?
- >
-
- There is no difference in their meanings.
-
- >Also, what is the difference between "int& data"
- >and "int &data" ?
- >
-
- There is no difference in their meanings.
-
- >
- >What does the following statement do/mean? :
- >
- > ((searchItem&) *this)._refCount++; //searchItem is the class name
-
- It tells the compiler to pretend that the 'this' pointer actually points to an
- object of type searchItem, and to increment the member of that object named
- _refCount.
-
-